﻿function onSkinChange(skin)
{
    $.cookie("miniuiSkin", skin);
    //$.cookie("miniuiSkin", skin, { path: '/', expires: 10 });//10天过期的话，可以保持皮肤切换
    window.location.reload();
}
window.onload = function ()
{
    if ($.cookie("miniuiSkin") != null)
    {
        var skin = $.cookie("miniuiSkin");
        if (skin)
        {
            var selectSkin = document.getElementById("selectSkin");
            selectSkin.value = skin;
        }
    }
    if ($.cookie("RealName") == null)
    {
        var realName = $.cookie("RealName");
        if (realName == null)
        {
            window.location.href = "/Login.html";
        }
    }
}